”)}})},initImagePreview:函数(){函数(){var i = []; l(“.lw_preview_image").每个(function(){var e=l(这);var t=e.我发现(img);.推动({src: e.attr("href"),caption:s.自由.htmlDecode (t.attr("data-caption")||t.attr("alt")||"")})});return i}i.(“点击”、“.lw_preview_image",function(e){e.preventDefault (); var t = l(这),i = t.找到(img).eq(0).attr(“alt”);如果(t.hasClass(“lw_disable_preview”))返回true;如果(我)“图像”= = =我= " ";.previewImage (t.attr(“href”),我());还真})},initDetailPreview:函数(){l (
').这是您要求的预览版.
Click to close window').prependTo (i);我.addClass("lw_is_preview");l(".lw_close_window").on("click",function(){window.close(),返回false})} initIngredientsPreviewNotification:函数(){如果(s.ingredients_preview){var e;e="
实时预览 您正在预览未发布的更改."+'
关掉';i.addClass("has_lw_notice").notify({id:"lw_is_hidden_message",信息:e,类型:“成功”,close_button:false,slideIn: 0,custom_class: " lw_ingredients_live_preview "}); l(“.js-turn-off-live-preview").on("click",function(){l.ajax({url:"/livewhale/backend.php”,data:{livewhale:"ajax",功能:“disableIngredientsPreview”},方法:“获得”,数据类型:“json”,success:function(e){e=e||{};if(l.isEmptyObject(e)||e.错误){年代.提示(“错误”,e."无法禁用预览模式。.","warning")}else{window.位置.reload(true)}})})},initHiddenPageNotification:function(){var e;e="此页面被标记为隐藏. It is not visible to the public.";i.addClass("has_lw_notice").notify({id:"lw_is_hidden_message",信息:e,类型:“警告”,close_button:false,slideIn: 0}); var t = l(“# lw_is_hidden_message”).outerHeight()-2;l("#lw_toolbar").动画({:t}, 180); l(“# lw_page”).动画({marginTop:“+ =”+ t +“px”},180)},initSubnavToggle:函数(){var e = l(“.lw_subnav_toggle");if(!e.长度)返回;e.each(function(){l(这).(“点击”,function () {var e = l(这).下(“ul”);如果(e.is(":visible")){e.slideUp(400,function(){l(这).最近的(“李”).removeClass(“lw_expanded”);l(这).attr(“aria-hidden”,“真正的”);l(这).上一页(“.lw_subnav_toggle").attr(“aria-expanded”,“假”)})}{如果(l(“其他.lw_subnav_toggle").next("ul:visible").长度){l(”.lw_subnav_toggle").next("ul:visible").slideUp(400,function(){l(这).最近的(“李”).removeClass(“lw_expanded”);l(这).attr(“aria-hidden”,“真正的”);l(这).上一页(“.lw_subnav_toggle").attr("aria-expanded","false");e.slideDown(650,function(){l(这).最近的(“李”).addClass("lw_expanded");l(这).attr(“aria-hidden”,“假”),l(这).上一页(“.lw_subnav_toggle").attr(“aria-expanded”,“真正的”)})}}{e.slideDown(650,function(){l(这).最近的(“李”).addClass("lw_expanded");l(这).attr(“aria-hidden”,“假”),l(这).上一页(“.lw_subnav_toggle").attr(“aria-expanded”,“真正的”)})}}}})}返回false, initPayments:函数(){如果(!l(".lw_支付”).长度)返回;l.getScript (s.liveurl_dir +”/资源/ js / livewhale /主题/核心/脚本/支付.js”,s(){函数.支付.init ()})}, initDateAgoElements:函数(){如果(!l(".lw_date_ago”).length)return;function e(){l.每个(l(“.lw_date_ago”)、功能(){如果(l(这).attr("data-date")){var e=new Date(l(这)).attr("data-date"));if(e&&!isNaN (e.getTime())){var t=new Date,i=(t.取得时间()- e.getTime())/1e3,a=Math.floor(i/86400),n=Math.floor((i-a*86400)/3600),o=Math.((我* 86400 - n * 3600) / 60), s =数学.地板(我* 86400 3600 - o - n * * 60); l(这).html(a>=1?+ +(一个“天”!==1?"s":"")+" ago":n>=1?“小时”n + + (n!==1?"s":"")+" ago":o>=1?o +“分钟”+ (o!==1?"s":"")+" ago":s>=1?s + + (s“第二”!==1?“s”:“”)+”前 ":"")}}})} e (); setInterval(函数(){e ()},6e4)},initEventDetailPage:函数(){var e = l (" # lw_cal_add_to_calendar, .lw_cal_add_to_calendar");if(!e.长度)返回;e.(“点击”、“ > a",function(e){e.preventDefault (); var t = l(这),i = t.父().找到(“ul”);如果(我).is(":visible")){t.removeClass("lw_active")}else{t.addClass("lw_active")}i.slideToggle(200);return true}).(“点击”、“li",function(e){e.preventDefault();var t=l(这).找到(“.lw_cal_icon"),i;if(t.hasClass("lw_cal_谷歌")){i=s.自由.getAddToGoogleLink(s.details_data)}else if(t.hasClass("lw_cal_雅虎")){i=s.自由.getAddToYahooLink(s.details_data)}else if(t.hasClass("lw_cal_ical")||t.hasClass("lw_cal_outlook")){i=s.liveurl_dir+"/ical/events/id/"+s.details_id+"/outlook/1"}window.开放(我,“SaveToCalendar”)})},initDetailPageMaps:函数(){如果(!s.is_details_template||!s.纬度| |!s.经度| |!l(".details_map”).length){return false}var e=l(".details_map”);var t=e.attr("data-aspect-ratio")?e.attr(“data-aspect-ratio”):“1:1”;var i = e.attr("data-zoom")?e.attr("data-zoom"):17;e.lwGoogleMapsEmbed({api_key:s.maps_api_key,latitude:s.latitude,longitude:s.经度,aspect_ratio: t,变焦:我})},showTestingMessage:函数(){var e;我.通知({id:“lw_测试ing_message”消息:“
这已被标记为测试页.类型:“警告”,close_button:假的,slideIn: 0}); e = l(“# lw_测试ing_message”).我outerHeight ();.css("margin-top",e);i.on("pageEditorInit.(){我lw”功能.css("margin-top",0);l("#lw_page").css(“margin-top”、“+ =”+ e); l(“# lw_toolbar”).css("top",e)})}};l(function(){s.前端.init();如果(s.is_hidden_page){s.前端.initHiddenPageNotification()}s.前端.}) (livewhale initIngredientsPreviewNotification ()}).jQuery | |窗口.jQuery,livewhale);
/*资源ID: 75aa3fc9331361725c5d7ea5479.位置.href.replace() */
/* Resource not found (). */
/*资源ID: 815417267f76f6f460a4a61f9db ([) */
/* Resource not found (). */